home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-07-17 | 1.3 KB | 64 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="1"
- "COUNT"="2"
- "UIPATH"="Internet\Windows Media Player"
- "NAME"="Extra Button"
- "LANGUAGE"="VBScript"
- "VERSION"="1.0"
- "TEXT 1"="Button Name"
- "TEXT 2"="Button URL"
- "DESCRIPTION 1"="Configure the extra button in WMP."
- "DESCRIPTION 2"="To hide the button again, clear the fields."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
-
-
- sPath="HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\"
- sV1="ShowCaseButton"
- sV2="ShowCaseURL"
-
-
- Sub Plugin_Initialize
- s=RegReadValue(sPath & sV1)
- SetUIElement 1,s
-
- s=RegReadValue(sPath & sV2)
- SetUIElement 2,s
- End Sub
-
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
-
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)=0 then
- 'If values exists, delete it
- s=RegReadValue(sPath & sV1)
- if IsEmpty(s)=false then Call RegDeleteValue(sPath & sV1)
- else
- Call RegWriteValue(sPath & sV1,s,1)
- end if
-
- s=GetUIElement(2)
- if len(s)=0 then
- 'If values exists, delete it
- s=RegReadValue(sPath & sV2)
- if IsEmpty(s)=false then Call RegDeleteValue(sPath & sV2)
- else
- Call RegWriteValue(sPath & sV2,s,1)
- end if
-
-
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-